-
Notifications
You must be signed in to change notification settings - Fork 859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query Failure #6947
base: main
Are you sure you want to change the base?
Query Failure #6947
Conversation
// Abort and fail the test. | ||
s.NoError(ctx.Err()) | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you add a small comment explaining the purpose of the second half of the test? I don't quite see the difference to the first half.
s.Equal("my error message", query1FailedErr.Message) | ||
s.Equal("my failure error message", query1FailedErr.Failure.Message) | ||
|
||
go func() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
q: why not just a single test, with both "QueryWorkflow" and "PollWorkflowTaskQueue/RespondQueryTaskCompleted" in a separate goroutines? What are you testing by testing like that?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the reviews.
I'll add more comments to clarify.
What changed?
Attach a Failure object from query failures to the QueryFailure serviceerror.
Why?
Allows encryption of failure messages and stack traces.
See also temporalio/api/pull/503.